package com.ndp.fb.walle.business;


import com.ndp.fb.exception.BusinessException;
import com.ndp.fb.rdb.model.Adword;
import com.ndp.fb.rdb.model.Dictionary;
import com.ndp.fb.rdb.model.Pager;
import com.ndp.fb.rdb.model.User;
import com.ndp.fb.walle.model.vo.adword.param.AdwordParam;

import java.util.List;

/**
 * Title: AdwordService.java
 * Description: 描述
 *
 * @author Administrator
 *         创建时间 2014年2月28日 下午3:15:44
 */

public interface AdwordService {

    /**
     * @description 创建广告词
     * @author Sisi
     * 创建时间 2014年7月22日 下午4:32:28
     */
    Long createAdword(User user, AdwordParam adwordParam) throws BusinessException;
    List<Dictionary> searchLanguage(Long fbConnectionObjectId, Long orgId, String language);

    /**
     * 删除
     *
     * @param userId
     * @param id
     * @return
     */
    Boolean deleteAdword(String userId, Long id);

    Adword findById(long id);


    List<Adword> getAdwordsAllList(Long fbConnectionObjectId, Long languageId, Long orgId);

    Pager<Adword> getAdwordsList(Long productId, Long languageId, Long orgId, int firstResult, int sizeNo);

    List<Adword> findByProductId(Long productId);

    List<Dictionary> searchLanguage(Long productId, String dicType, Long orgId, String language);
    
    Adword findRandomForRobot(Long orgId,Long productId,List<String> language);
}
